package com.huangkailong.designpattern.bridge;

/**
 * 桥接模式测试.
 * 维度：
 * <ul>
 *     <li>维度一：邮件消息，短信消息</li>
 *     <li>维度二：正常消息，加急消息</li>
 * </ul>
 *
 * @author huangkl
 * @since 1.0.0
 */
public class Client {
    /**
     * main 方法.
     */
    public static void main(String[] args) {
        EmailMessage emailMessage = new EmailMessage();
        NormalMessage normalMessage = new NormalMessage(emailMessage);
        normalMessage.send("调休申请", "行政");
        SmsMessage smsMessage = new SmsMessage();
        UrgentMessage urgentMessage = new UrgentMessage(smsMessage);
        urgentMessage.send("加班申请", "行政");
    }
}
